function updateTerm(termId){
	    $.get("/system/erp/worklog/getWorklog", {"worklogId": termId}, function (r) {
        if (r.code === 200) {
            var $form = $('#addTermModal');
            $form.modal('show');
            var worklog = r.msg;
            $form.find("input[name='id']").val(worklog.id);
            $form.find("input[name='dateTime']").val(worklog.dateTime);
            $form.find("input[name='details']").val(worklog.details);
            $form.find("input[name='oldDetails']").val(worklog.details);
            $form.find("input[name='status']").val(worklog.status);
            $form.find("input[name='sort']").val(worklog.sort);
            $("#termAddBtn").attr("name","update");
        } else {
            $Jtk.n_danger(r.msg);
        }
    });
	
}